package com.moonlit.myspring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class FirstBean {
    public static void main(String[] args) throws Exception {
//        ApplicationContext context =new ClassPathXmlApplicationContext("sping-idol.xml");
//        Performer duke = (Performer) context.getBean("duke");
//        duke.ferform();

        ApplicationContext context =new ClassPathXmlApplicationContext("sping-idol.xml");
        ProjectJuggler duke = (ProjectJuggler) context.getBean("poeticDuke");
        duke.ferform();
    }
}
